package model;

public class ProductModel {
	private String id;
	private String name;
	private double price;
	private int quantities;
	private String type_id;
	private String event_id;
	private String image_url;
	private String date_expire;
	
	public ProductModel(){}
	
	public ProductModel(String id,String name,double price,int quantities,String type_id,String event_id,String image_url,String date_expire)
	{
		this.id=id;
		this.name=name;
		this.price=price;
		this.quantities=quantities;
		this.type_id=type_id;
		this.event_id=event_id;
		this.image_url=image_url;
		this.date_expire=date_expire;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getType_id() {
		return type_id;
	}
	public void setType_id(String type_id) {
		this.type_id = type_id;
	}
	public String getEvent_id() {
		return event_id;
	}
	public void setEvent_id(String event_id) {
		this.event_id = event_id;
	}
	public String getImage_url() {
		return image_url;
	}
	public void setImage_url(String image_url) {
		this.image_url = image_url;
	}

	public void setDate_expire(String date_expire) {
		this.date_expire = date_expire;
	}

	public String getDate_expire() {
		return date_expire;
	}

	public void setQuantities(int quantities) {
		this.quantities = quantities;
	}

	public int getQuantities() {
		return quantities;
	}
	
	public void IncreaseQty(int s){
		this.quantities += s;
	}
	
	public String toString(){
		return this.id + "," + this.name +"," + this.price + "," + this.quantities + "\n" ;		
	}
}
